<template>
	<view class="mainbgc">
		<u-swiper :list="dataAll.images_text"height="390" radius="0"></u-swiper>
		<view class="mainpadding margin-top ffffff">
			<view class="titleText">{{dataAll.title}}</view>
			<view class="margin-top">
				<u-parse :content="dataAll.content"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				dataAll:{},
			}
		},
		onLoad(options) {
			this.init(options.id)
		},
		methods: {
			init(id) {
				let _this = this;
				httpRequest.request('api/index/noticeDetail', 'GET', {
					id
				}, false, false, true).then(res => {
					this.dataAll = res.data
				}).catch(err => {
					httpRequest.toast(err.msg);
				})
			},
		}
	}
</script>

<style>
	.titleText {
		font-size: 30rpx;
		font-family: PingFang SC-Heavy, PingFang SC;
		font-weight: 800;
		color: #000000;
	}
</style>